package com.nuc.ENetcom.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nuc.ENetcom.dao.StumoneyDao;
import com.nuc.ENetcom.entity.Stumoney;
import com.nuc.ENetcom.service.StumoneyService;
import com.nuc.ENetcom.utils.PageUtil;
@Service
public class StumoneyServiceImpl implements StumoneyService {
	@Autowired
	StumoneyDao dao;
	@Override
	public int delete(String id) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int save(Stumoney user) throws SQLException {
		// TODO Auto-generated method stub
		return dao.update(user);
	}

	@Override
	public Stumoney get(String id) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Stumoney> getAll() throws SQLException {
		// TODO Auto-generated method stub
		return dao.getAll();
	}

	@Override
	public int getTotal() throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Stumoney> getPage(int pageno, int pagesize) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PageUtil<Stumoney> getPage1(int pageno, int pagesize) {
		// TODO Auto-generated method stub
		return null;
	}

}
